package com.cskaoyan.javase.basic._7scanner;

import java.util.Scanner;

/**
 * next方法
 * @since 16:43
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("录入一个字符串:");
        String str = sc.next();
        System.out.println(str);
        String str2 = sc.next();
        System.out.println(str2);
        int num = sc.nextInt();
        System.out.println(num);

        // String str = sc.nextLine();
        // System.out.println(str);
        // String str2 = sc.nextLine();
        // System.out.println(str2);
    }
}

